package com.hskn.hss.module.elementtotal.iEnum;

public enum DTUEnum {
    SMOKE("smoke","烟雾","ppm","烟雾报警","ywnd"),
    HUMIDITY("humidity","硫化氢","ppm","硫化氢报警","lhqnd"),
    AMMONIA("ammonia","氨气","ppm","氨气报警","aqnd");

    private String name;
    private String notes;
    private String company;
    private String sysAlarmName;
    private String flag;

    DTUEnum(String name, String notes, String company,String sysAlarmName,String flag) {
        this.name = name;
        this.notes = notes;
        this.company = company;
        this.sysAlarmName = sysAlarmName;
        this.flag = flag;
    }


    public String getNotes() {
        return notes;
    }
    public String getNotesByName(String name) {
        for (DTUEnum c : DTUEnum.values()) {
            if (c.getName() .equals(name) ) {
                return c.notes;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getSysAlarmName() {
        return sysAlarmName;
    }

    public void setSysAlarmName(String sysAlarmName) {
        this.sysAlarmName = sysAlarmName;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }
}
